<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
	
<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<head>
		<title>
			<h:outputText value="#{msg.deleteQuest}" />
		</title>
		</head>
		<br />
		<f:event listener="#{chestionareBean.verifyA()}" type="preRenderView"></f:event>
		
		<h:form>
			<div align="center">
			<h2></h2>
			<div style="overflow-y:scroll;height: 200px;">
			<h:dataTable value="#{chestionareBean.chestionare}" var="item">
				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.name}" />
    				</f:facet>
     				<h:outputText value="#{item.nume}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.purpose}" />
    				</f:facet>
     				<h:outputText value="#{item.scop}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.category}" />
    				</f:facet>
     				<h:outputText value="#{item.categorie}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.subcategory}" />
    				</f:facet>
     				<h:outputText value="#{item.subcategorie}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value="#{msg.active}" />
    				</f:facet>
     				<h:outputText value="#{item.activ}" />
  				</h:column>
  				<h:column>
    				<f:facet name="header">
       					<h:outputText value=" " />
    				</f:facet>
     				<h:commandButton action="#{chestionareBean.delete(item)}" image="/resources/images/cross.png"/> 
  				</h:column>
  				

			</h:dataTable>
			</div>
			<h:commandButton
				value="#{msg.back}" styleClass="button" action="#{loginBean.inapoiA()}"  immediate="true"/> <br></br>
			<h:commandButton
				value="#{msg.logout}" styleClass="button" action="#{adminBean.logOut()}"  immediate="true"/> <br></br>
			
			</div>
			
		</h:form>
		
	</ui:define>
	
</ui:composition>





</html>